package com.jdbcTemplate.mapper;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jdbcTemplate.domain.TAa;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.UUID;

/**
 * @author CKC
 * @date 2022/11/22 13:20
 */
@Service
public class TAaServiceImpl extends ServiceImpl<TAaMapper, TAa> implements TAaService {

    public void insert() {
        ArrayList<TAa> tAas = new ArrayList<>(250000);
        for (long i = 0; i < 200000; i++) {
            String s = UUID.randomUUID().toString();
            tAas.add(new TAa(i, s, s, s, s, s));
        }
        this.saveBatch(tAas);
    }

}
